module.exports = function (sequelize, DataTypes) {
    const RolePermission = sequelize.define('RolePermission', {
        roleId: {
            type: DataTypes.STRING,
            allowNull: false,
            comment: '角色ID'
        },
        permissionId: {
            type: DataTypes.STRING,
            allowNull: false,
            comment: '权限ID'
        }
    }, {
        timestamps: true, //createAt updateAt是否显示
        createdAt: "createdTime", // 将createdAt设为自定义字段createdTime
        updatedAt: "updatedTime",
        deletedAt: "deletedTime",
    })

    return RolePermission;
}

